import { t } from '@src/locales';
// 系统字段
export const stystemFields =  [
    {
        isSystem: 1,
        fieldName: 'CURRENT_NODE',
        displayName: t('report.customReportAggregate.currentNode'),
        formType: 'text',
        show: true,
        isSearch: 0
    },
    {
        isSystem: 1,
        fieldName: 'USER_DEPARTMENT',
        displayName: t('report.customReportAggregate.userDepartment'),
        formType: 'text',
        show: true,
        isSearch: 0
    },

    {
        isSystem: 1,
        fieldName: 'WFLOW_STATUS',
        displayName: t('common.base.dataState'),
        formType: 'select',
        show: true,
        isSearch: 1,
        setting: {
        isMulti: false,
        dataSource: [
            { text: t('common.base.all'), value: '' },
            { text: t('common.task.type.processing'), value: '1' },
            { text: t('common.base.usualStatus.finish'), value: '2' },
            { text: t('common.event.stateProcess.offed'), value: '3' },
            { text: t('common.base.draft'), value: '4' }
        ]
        }
    },
    {
        isSystem: 1,
        fieldName: 'assignUser',
        displayName: t('report.customReportAggregate.assignUser'),
        formType: 'user',
        show: true,
        isSearch: 1
    },
    {
        isSystem: 1,
        fieldName: 'CREATE_USER',
        displayName: t('common.base.createUser'),
        formType: 'user',
        show: true,
        isSearch: 1
    },

    {
        isSystem: 1,
        fieldName: 'CREATE_TIME',
        displayName: t('common.base.createTime'),
        formType: 'datetime',
        show: true,
        isSearch: 1
    },
    {
        isSystem: 1,
        fieldName: 'UPDATE_TIME',
        displayName: t('task.list.displayName.updateTime'),
        formType: 'datetime',
        show: true,
        isSearch: 1
    }
];
  

export const SystemFieldNameEnum = {
    WFLOW_STATUS: 'status',
    CREATE_USER: 'createUserIdList',
    assignUser: 'assignUserIdList',
    CREATE_TIME: 'createTime',
    UPDATE_TIME: 'updateTime',
}
  